﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Microsoft.Windows.Controls.Ribbon;
using System.Windows.Media.Animation;
using cecbData;
using CECB.Project;
using CECB.Activity;
using CECB.Member;
using CECB.Impact;
using CECB.Dashbord;
namespace CECB
{
    /// <summary>
    /// Interaction logic for Cecb_Main_Menu.xaml
    /// </summary>
    public partial class Cecb_Main_Menu : RibbonWindow
    {
        public Cecb_Main_Menu()
        {
            
            InitializeComponent();
            (FindResource("showMe") as Storyboard).Begin(this);
            // Insert code required on object creation below this point.
            listBoxRecentProjects.ItemsSource = new DSSEntities().Projects;
             (FindResource("closec") as Storyboard).Begin();
         //   (FindResource("closec1") as Storyboard).Begin();
         //   (FindResource("closec2") as Storyboard).Begin();
         //   (FindResource("closecmem") as Storyboard).Begin();
           // (FindResource("closecsub") as Storyboard).Begin();

         //   ForeColorPicker.CurrentColor = Brushes.DarkBlue;
           
        }

        private void canvas1_MouseEnter(object sender, MouseEventArgs e)
        {
            Canvas c = (Canvas)sender;
            DoubleAnimation s = new DoubleAnimation(1, TimeSpan.FromSeconds(1));
            c.BeginAnimation(Canvas.OpacityProperty, s);
        }

        private void canvas1_MouseLeave(object sender, MouseEventArgs e)
        {
            Canvas c = (Canvas)sender;
            DoubleAnimation s = new DoubleAnimation(0, TimeSpan.FromSeconds(1));
            c.BeginAnimation(Canvas.OpacityProperty, s);
        }

        private void ReferenceTextBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

         

        private void button_searchClick(object sender, RoutedEventArgs e)
        {
            new DashSlider_Window().Show();
        }

        private void buttonNotification_Click(object sender, RoutedEventArgs e)
        {
            new Email.Email_Reader_New_Window().Show();
        }

        private void buttonAddANewProject_Click(object sender, RoutedEventArgs e)
        {
           
        }

        private void buttonExit_Click(object sender, RoutedEventArgs e)
        {
            new DashSliderExit_Window().ShowDialog();
        }

        private void buttonAddANewMember_Click(object sender, RoutedEventArgs e)
        {
          
        }

        private void buttonDeleteMember_Click(object sender, RoutedEventArgs e)
        {
            new Project_Questions_Window().Show();
        }

        private void buttonSendEmail_Click(object sender, RoutedEventArgs e)
        {
            new ActivationCodeEmail_Window().Show();
        }

        private void buttonUpdateMember_Click(object sender, RoutedEventArgs e)
        {

        }

        private void Button7_Click(object sender, RoutedEventArgs e)
        {
            new Project_Activity_Window().Show();
        }

        private void Button8_Click(object sender, RoutedEventArgs e)
        {
            new Project_Questions_Window().Show();
        }

        private void Button9_Click(object sender, RoutedEventArgs e)
        {

        }

        private void ButtonFillMatrix_Click(object sender, RoutedEventArgs e)
        {
          
        }

        private void buttonSearchProjects_Click(object sender, RoutedEventArgs e)
        {
            new Team_Window().Show();
        }

        private void buttonxx_Click(object sender, RoutedEventArgs e)
        {
          //  new Excel_Genaration().Show();
        }

        private void Button12_Click(object sender, RoutedEventArgs e)
        {
            new Project_Activity_Update_Window().Show();
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {

        }

        private void wrapPanelListItem_MouseEnter(object sender, MouseEventArgs e)
        {
            //(FindResource("wrapSlidLeft") as Storyboard).Begin(this);
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            
        }

        

         

        private void rectangle_MouseEnter(object sender, MouseEventArgs e)
        {
            //(FindResource("slideRecleft") as Storyboard).Begin(this);
        }

        private void rectangle1_MouseEnter(object sender, MouseEventArgs e)
        {
           // (FindResource("slideRecleft1") as Storyboard).Begin(this);
          
        }

        private void rectangle2_MouseEnter(object sender, MouseEventArgs e)
        {
          //  (FindResource("slideRecleft2") as Storyboard).Begin(this);
             
            
        }

        private void TextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            this.Close();
        //    new Login_Window_New().Show();
          //  Application.Current.Exit;
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            
        }

        private void button1_Click_1(object sender, RoutedEventArgs e)
        {
           // (FindResource("openc") as Storyboard).AutoReverse = true;
            
        }

        private void TextBlock_MouseEnter(object sender, MouseEventArgs e)
        {
         //   (FindResource("openc") as Storyboard).Begin(this);
        }

        private void TextBlock_MouseLeave(object sender, MouseEventArgs e)
        {
           
        }

        private void groupBox_MouseLeave(object sender, MouseEventArgs e)
        {
         //   (FindResource("closec") as Storyboard).Begin();
        }

        private void TextBlockEmail_MouseLeave(object sender, MouseEventArgs e)
        {

        }

        private void groupBox1_MouseLeave(object sender, MouseEventArgs e)
        {
         //   (FindResource("closec1") as Storyboard).Begin();
        }

        private void TextBlockEmail_MouseEnter(object sender, MouseEventArgs e)
        {
        //    (FindResource("openc1") as Storyboard).Begin(this);
        }

        private void groupBox2_MouseLeave(object sender, MouseEventArgs e)
        {
        //    (FindResource("closec2") as Storyboard).Begin();
            //(FindResource("closecsub") as Storyboard).Begin();
        }

        private void TextBlockMember_MouseEnter(object sender, MouseEventArgs e)
        {
        //    (FindResource("openc2") as Storyboard).Begin(this);
        }

        private void StackPanel_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
           new V_FillMatrix_Window().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            new ReportManager_Window().ShowDialog(); 
        }

        private void StackPanel_MouseLeftButtonDown_2(object sender, MouseButtonEventArgs e)
        {
            new SimpleMatrixCalculation().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_3(object sender, MouseButtonEventArgs e)
        {
           // new EmailReader_Window().Show();
            new Activity.Project_Activity_Insert_Window().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            new Project_Questions_Window_Update().ShowDialog();
        }

        private void StackPanel_MouseEnter(object sender, MouseEventArgs e)
        {
           // (FindResource("opencsub") as Storyboard).Begin(this);
        }

        private void groupBoxSubMenu_MouseLeave(object sender, MouseEventArgs e)
        {
           //  (FindResource("closecsub") as Storyboard).Begin(this);
        }

        private void StackPanel_MouseLeftButtonDown_4(object sender, MouseButtonEventArgs e)
        {
            new ActivationCodeEmail_Window().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_5(object sender, MouseButtonEventArgs e)
        {
            new V_MemberSearch_Window().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_6(object sender, MouseButtonEventArgs e)
        {
            new Impact.Project_Impact_Insert_Window().ShowDialog();
        }

        private void buttonSettings_Click(object sender, RoutedEventArgs e)
        {
             new DashSlideSettings_Window().ShowDialog();
        }

        private void ForeColorPicker_SourceUpdated(object sender, DataTransferEventArgs e)
        {
          //  MessageBox.Show(ForeColorPicker.CurrentColor.Color.ToString());
        }

        private void StackPanel_MouseLeftButtonDown_7(object sender, MouseButtonEventArgs e)
        {
            new AddNewProject_Window().ShowDialog();
        }

        private void TextBlock_MouseEnter_1(object sender, MouseEventArgs e)
        {
         //   (FindResource("opencmem") as Storyboard).Begin();
        }

        private void groupBoxMem_MouseLeave(object sender, MouseEventArgs e)
        {
          //  (FindResource("closecmem") as Storyboard).Begin();
        }

        private void StackPanel_MouseLeftButtonDown_8(object sender, MouseButtonEventArgs e)
        {
            new V_MemberNew_Window().ShowDialog();
        }

        private void StackPanel_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            //new UpdateProjectDetails().ShowDialog();
        }

        private void StackPanel_PreviewMouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            new ViewFild_MatrixDetails().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_9(object sender, MouseButtonEventArgs e)
        {
            new ViewMap_Window().ShowDialog();
            //(FindResource("openc") as Storyboard).Begin(this);
        }

        private void StackPanel_MouseLeftButtonDown_10(object sender, MouseButtonEventArgs e)
        {
            new Project_Activity_Update_Window().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_11(object sender, MouseButtonEventArgs e)
        {
            //new UpdateProj_BasicDtails().ShowDialog();
            new Insert_ProjEIADetails().ShowDialog();
        }

        private void StackPanel_MouseLeftButtonDown_12(object sender, MouseButtonEventArgs e)
        {
        //    new FillMatrix_Window().sh

        }

        private void GroupBox_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            new V_MemberUpdate_Window().ShowDialog();
        }

        private void GroupBox_MouseLeftButtonDown_1(object sender, MouseButtonEventArgs e)
        {
            new Team_Window().ShowDialog();
        }

        private void image2_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            
        }

        private void GroupBox_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
          
        }

        private void GroupBox_MouseLeftButtonDown_2(object sender, MouseButtonEventArgs e)
        {
            new UpdateProj_BasicDtails().ShowDialog();
            (FindResource("closec") as Storyboard).Begin(this);
        }

        private void GroupBox_MouseLeftButtonDown_3(object sender, MouseButtonEventArgs e)
        {
            new UpdateProj_EIADetails().ShowDialog();
        }

        private void TextBlock_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            (FindResource("openc") as Storyboard).Begin(this);
        }

        private void GroupBox_MouseLeftButtonDown_4(object sender, MouseButtonEventArgs e)
        {
            new UpdateProj_EIADetails().ShowDialog();
            (FindResource("closec") as Storyboard).Begin(this);
        }

        private void grid1_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            new V_TemplateViwer_Window().ShowDialog();
        }

        private void button1_Click_2(object sender, RoutedEventArgs e)
        {
           // new Activity.Project_Activity_Insert_Window().ShowDialog();
        }
    }
}
